#region License
// NavigationContainer.cs
// 
// Copyright (c) 2012 Xoqal.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
// http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion

namespace Shammateh.Win.UI
{
    using System.Collections.Generic;
    using System.Windows.Input;
    using System.Windows.Media;
    using Shammateh.Win.UI.Controls;
    using Shammateh.Win.UI.ViewModels;

    /// <summary>
    /// Navigation container. 
    /// </summary>
    public class NavigationContainer
    {
        /// <summary>
        /// Gets the items.
        /// </summary>
        /// <param name="showViewCommand">The show view command.</param>
        /// <returns></returns>
        public static List<NavigationPaneHeader> GetItems(ICommand showViewCommand)
        {
            return new List<NavigationPaneHeader>
                   {
                       new NavigationPaneHeader
                       {
                           Header = "اطلاعات پایه",
                           Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/info.png"),
                           NavigationPaneDetails = new List<INavigationPaneDetail>
                           {
                               new NavigationPaneDetail<ResourceViewModel>
                               {
                                    Title = "افراد",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/user.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty
                               },
                               new NavigationPaneDetail<AudienceViewModel>
                               {
                                    Title = "مخاطب",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/talk.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty
                               },
                               new NavigationPaneDetail<ActivityTypeViewModel>
                               {
                                    Title = "نوع فعالیت",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/action.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty
                               },
                               new NavigationPaneDetail<ProjectViewModel>
                               {
                                    Title = "پروژه",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/product.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty
                               },
                               new NavigationPaneDetail<RateViewModel>
                               {
                                    Title = "نرخ",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/price_tag.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty
                               }
                           }
                       },
                       new NavigationPaneHeader
                       {
                           Header = "عملیات اصلی",
                           Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/services.png"),
                           NavigationPaneDetails = new List<INavigationPaneDetail>
                           {
                               new NavigationPaneDetail<WorkViewModel>
                               {
                                    Title = "فعالیت",
                                    Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/stopwatch.png"),
                                    Command = showViewCommand,
                                    Permissions = string.Empty////"Work"
                               }
                           }
                       },
                       new NavigationPaneHeader
                       {
                           Header = "گزارشات",
                           Image = (ImageSource)new ImageSourceConverter().ConvertFromString("pack://application:,,/Images/Icons/combo.png"),
                           NavigationPaneDetails = new List<INavigationPaneDetail>()
                       }
                   };
        }
    }
}
